// 点赞与取消点赞资源
const { resourceTypeMap } = require('../util/config.json')
module.exports = (query, request) => {
  // query.cookie.os = 'android'
  // query.t = query.t == 1 ? 'like' : 'unlike'
  // query.type = resourceTypeMap[query.type]
  // const data = {
  //   threadId: query.type + query.id,
  // }
  // if (query.type === 'A_EV_2_') {
  //   data.threadId = query.threadId
  // }
  // return request(
  //   'POST',
  //   `https://music.163.com/weapi/resource/${query.t}`,
  //   data,
  //   {
  //     crypto: 'weapi',
  //     cookie: query.cookie,
  //     proxy: query.proxy,
  //     realIP: query.realIP,
  //   },
  // )
  return new Promise(function(resolve, reject){
    resolve({
      status: 200, // The Http Response Code
      body: {
        "msg": "游客点赞",
        "code": 200
      }, // API Response body
    cookie: []
    });
  })
}
